package cn.iocoder.yudao.module.biz.controller.admin.contract.autocode.part.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@Schema(description = "管理后台 - 编码生成规则组成新增/修改 Request VO")
@Data
public class AutoCodePartSaveReqVO {

    @Schema(description = "分段ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23396")
    private Long partId;

    @Schema(description = "规则ID", example = "16264")
    private Long ruleId;

    @Schema(description = "分段序号")
    private Integer partIndex;

    @Schema(description = "分段名称", example = "赵六")
    private String partName;

    @Schema(description = "分段长度")
    private Integer partLength;

    @Schema(description = "分段类型，DATETIME：日期时间，FIXEDCHAR：固定字符，SERIALNUMBER：流水号", example = "1")
    private String partType;

    @Schema(description = "固定字符")
    private String fixedCharacter;

    @Schema(description = "日期格式")
    private String dateFormat;

    @Schema(description = "流水号起始值")
    private Integer seriaStartNo;

    @Schema(description = "流水号步长")
    private Integer seriaStep;

    @Schema(description = "流水号是否循环")
    private String cycleFlag;

    @Schema(description = "循环方式，YEAR：按年，MONTH：按月，DAY：按天，HOUR：按小时，MINITE：按分钟")
    private String cycleMethod;

    @Schema(description = "创建部门")
    private Long createDept;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}